/* type Props = {
  id: string
  children: number[]
}

type PartialProps = Partial<Props>
const person: PartialProps = {
  id: '22',
} */

// Readonly
/* type Props = {
  id: string
  children: number[]
}

const person: Readonly<Props> = {
  id: '22',
  children: [1, 2],
}

person.id = '88' */

// Pick
interface Props {
  id: string
  title: string
  children: number[]
}
// 摘出 id 和 title
// type PickProps = Pick<Props, 'id' | 'title'>

// const a: PickProps = {
//   id: '88',
//   title: 'abc',
// }
// console.log(a)

type OmitProps = Omit<Props, 'id' | 'title'>

const a: OmitProps = {
  children: [1],
}

export {}
